<h1>Edit your Book</h1>

   <fieldset>
    <legend>Take a moment and describe your book</legend>
    <% form_for :book, :url => { :action => "update", :id => @book.id} do |form| %>
      <div>
        <%= form.label :user_id %>: <br/>
        <%= collection_select(:book, :user_id, User.find(:all, :order => "name"), :id, :name, {}) %>
      </div>
    
      <div>
        <%= form.label :title %>: <br />
        <%= form.text_field :title,  :class => "short" %>
      </div>     
    
      <div>
        <%= form.label :isbn %>: <br/>
        <%= form.text_field :isbn, :class => "short" %>
      </div>
    
      <div>
        <%= form.label :condition_id %>: <br/>
        <%= collection_select(:book, :condition_id, Condition.find(:all, :order => "id"), :id, :title, {}) %>
      </div>
    
      <div>
        <%= form.label :tags %> (seperated by ,)<br/>
        <%= text_field_tag :tag_list, @tag_list, :size => "30" %>
      </div>
    
      <%= submit_tag "Submit"  %>
    
    <% end %>
  </fieldset>

